import NProgress from "nprogress"
import "nprogress/nprogress.css"

// 轻量级的进度条插件
NProgress.configure({
  easing: "ease",
  speed: 1000,
  showSpinner: false,
  trickleSpeed: 200,
  minimum: 0.3,
  parent: "body"
})

// 开始
export const start = () => NProgress.start()
// 结束
export const close = () => NProgress.done()
